[objc_getClass("PLCameraController") sharedInstance] always returns nil in iPhone
Posted
by paul simmons
on Stack Overflow
See other posts from Stack Overflow
or by paul simmons
Published on 2009-12-14T21:34:51Z
Indexed on
2010/04/29
8:27 UTC
Read the original article
Hit count: 459
iphone-sdk
I am trying to apply Mike Chen's answer here, using SDK 3.0. In delegate.m file I implement;
[viewController.view addSubview:[[objc_getClass("PLCameraController") sharedInstance] previewView]];
and in viewcontroller.m I implement:
PLCameraController *cam = [objc_getClass("PLCameraController") sharedInstance];
CapturedImage = [cam _createPreviewImage];
but 'cam' is always nil. Any suggestions?
© Stack Overflow or respective owner